package com.example.ex2.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

//@Component
@Data
//@ConfigurationProperties(prefix = "student")
public class Student implements Serializable {

    private String name;

    private int no;

    private int grade;

    private String major;

    private String college;

    public Student() {
    }

    public Student(String name, int no, int grade, String major, String college) {
        this.name = name;
        this.no = no;
        this.grade = grade;
        this.major = major;
        this.college = college;
    }
}
